<?php

/**
 * 交换数组中的键和值
 */

$trans = array("a" => 11, "b" => "11", "c" => 2);
$trans = array_flip($trans);
print_r($trans);
